home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tools / utils / smc_tt1 / cookie.h next >
Text File  |  1995-11-25  |  950b  |  32 lines

  1. /********************************************************************/
  2. /*                                                                    */
  3. /*    Packet driver for AMD LANCE ethernet controller                    */
  4. /*                                                                    */
  5. /*    Copyleft by H. Wieser, 1992 TU-Vienna IAEE                        */
  6. /*    All rights reserved                                                */
  7. /*                                                                    */
  8. /********************************************************************/
  9.  
  10. /* cookie jar */
  11.  
  12.  
  13. typedef struct
  14. {
  15.     long    id;
  16.     long    val;
  17. } COOKIE;
  18.  
  19. #define ENDCOOKIE    0L
  20. #define NETENVCOOKIE 0x4e455443L            /* "NETC" */
  21.  
  22. COOKIE *new_cookiejar(long n);            /* create cookiejar,        */
  23.                                         /* if a bigger one exists,    */
  24.                                         /* get old one                 */
  25. COOKIE *get_cookiejar(void);            /* find start of cookijar     */
  26. COOKIE *add_cookie(long id ,long val);    /* add a cookie,             */
  27.                                         /* if no jar exists,         */
  28.                                         /* create a new one and     */
  29.                                         /* then add cookie            */
  30. COOKIE *get_cookie(long id);            /* find a specific cookie     */
  31.  
  32.